<template>
  <rich-text :nodes="nodes"></rich-text>
</template>
<script>
export default {
  data() {
    return {
      nodes: "",
    };
  },
  onLoad(options){
      this.getCommonProtocol(options.type)
  },
  methods: {
    getCommonProtocol(banner) {
      this.$api.getCommonProtocol({banner}).then((res) => {
        if (res.code == 200) {
          uni.setNavigationBarTitle({
            title: res.data.title
          });
          this.nodes = res.data.describe;
        }
      });
    },
  },
};
</script>
